/**
 * @author Eric Jahn
 * Course: Object Oriented Programming
 * Final Project
 * Due Date: August 3, 2012
 */
package oop.chat.search;

import oop.chat.user.UserAccount;

/**
 * abstract search class, every search has to extend this class
 * @author Eric Jahn
 */
public abstract class Search 
{
    //search type 	
    protected SearchType type;

    /**
     * parent constructor to set the search type
     * @param	type	SearchType
     */
    protected Search(SearchType type) 
	{
        this.type = type;
    }

	/**
	 * main method to perform a search
	 * @param	searchWord		String
	 * @param	user			UserAccount
	 * @return 
	 */
    public abstract Object doSearch(String searchWord, UserAccount user);
}